package com.jic.market.mapper;

import com.jic.market.entity.MaterialCategory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 素材分类表
 * @author : 
 * @email : 
 * @since : 2020-02-27 04:39:42
 * @version : v1.0.0
 */
@Mapper
public interface  MaterialCategoryMapper {

    long insert(MaterialCategory materialCategory);

    long delete(Long id);

    long update(MaterialCategory materialCategory);

    MaterialCategory queryByPrimaryKey(Long id);

    List<MaterialCategory> query(MaterialCategory materialCategory);

    List<MaterialCategory> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("materialCategory") MaterialCategory materialCategory);

    long queryPageCount(MaterialCategory materialCategory);

    List<Long> queryIdsByParentCategoryIds(@Param("parentCategoryIds")List<Long> parentCategoryIds);
}